This is code description of the paper "Quantile Effects in Discrete Choice with Social Interactions", 2024 REStat
There are four files:
NPS_2024_Exercise.R is the main code to get results of empirical study, Table 3-6 in the paper.
The data is "The National Longitudinal Study of Adolescent Health" of Carolina Population Center. The data used in the paper is the restricted-use part of the Add Health.
Though access can be granted from CPC at https://addhealth.cpc.unc.edu/data/#restricted-use.

sa.nps.R is the source code called in the main code to implement the Nested Pseudo Score (NPS) estimation.
npsms.dll is the code to implement the Simulated Annealing algorithm of the maximum score estimation step in NPS.


NPS_2024_MC.R is the code to conduct the Monte Carlo experiments in the paper, Table 1-2 in the paper.